package com.czh.springboot04.service;

import com.czh.springboot04.entity.PrivateMessage;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface PrivateMessageService {

    int insertPrivateMessage(PrivateMessage privateMessage);
    int updatePrivateMessageById(PrivateMessage privateMessage);
    PrivateMessage selectPrivateMessageById(Integer pmId);
    int deletePrivateMessageById(Integer pmId);
    int deletePrivateMessageByList(List<Integer> pmIdList);
    PageInfo<PrivateMessage> selectPrivateMessageAll(Integer pmId,
                                                     Integer memberId,
                                                     Integer consultId,
                                                     Integer pageNum,
                                                     Integer pageSize);
}
